<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="shortcut icon" href="favicon.ico"> <link href="./src/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
        <link href="./src/css/font-awesome.css?v=4.4.0" rel="stylesheet">
        <link href="./src/css/plugins/iCheck/custom.css" rel="stylesheet">
        <link href="./src/css/animate.css" rel="stylesheet">
        <link href="./src/css/style.css?v=4.1.0" rel="stylesheet">
        <link href="./src/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
        <script type="text/javascript" src="src/js/jquery.min.js"></script>
        <script src="./src/js/jquery.min.js?v=2.1.4"></script>
        <script src="./src/js/bootstrap.min.js?v=3.3.6"></script>
        <script src="./src/js/content.js?v=1.0.0"></script>
        <script src="./src/js/plugins/sweetalert/sweetalert.min.js"></script>
        <script src="./src/js/My97DatePicker/WdatePicker.js"></script>
        <script>
            var max_count = <?php echo count($this->orderdetail_id); ?>;
            $(function() {
                $(".tbody").css("display", "none");
                $(".tbody_1").css("display", "block");
                if(<?php echo $this->order_num; ?> != 0){
                    $(".box_class_" + <?php echo $this->order_num; ?>).addClass('main_in_tr_content_cur');
                }

                $('.box_class').click(function() {
                    var orderid_detail = $(this).find('.orderid_hid').html();
                    location.href = "./?m=order&a=update&orderid_detail=" + orderid_detail;
                });
                
                $("#goto_first").click(function(){
                    var orderid_detail = $(".box_class_1").find('.orderid_hid').html();
                    location.href = "./?m=order&a=update&orderid_detail=" + orderid_detail;
                });
                
                $("#goto_pre").click(function(){
                    var number = <?php echo $this->order_num; ?> - 1;
                    if(number < 1){
                        return false;
                    }
                    var orderid_detail = $(".box_class_" + number).find('.orderid_hid').html();
                    location.href = "./?m=order&a=update&orderid_detail=" + orderid_detail;
                });
                
                $("#goto_next").click(function(){
                    var number = <?php echo $this->order_num; ?> + 1;
                    if(number > max_count){
                        return false;
                    }
                    var orderid_detail = $(".box_class_" + number).find('.orderid_hid').html();
                    location.href = "./?m=order&a=update&orderid_detail=" + orderid_detail;
                });
                
                $("#goto_end").click(function(){
                    var orderid_detail = $(".box_class_" + max_count).find('.orderid_hid').html();
                    location.href = "./?m=order&a=update&orderid_detail=" + orderid_detail;
                });



                $('#custom_id').change(function() {
                    $('#custom_contact_id option').remove();
                    $('#custom_site_id option').remove();
                    $('#custom_site_contact_id option').remove();
                    $('#delivery_point_id option').prop('selected', false);
                    var tmp_value = $(this).val();
                    if (tmp_value > 0) {
                        $.getJSON('./?m=ajax&a=custominfo&id=' + tmp_value, function(data) {
                            $.each(data.contact, function(k, v) {
                                var item = '<option value="' + v.id + '">' + v.name + '</option>';
                                $('#custom_contact_id').append(item);
                            });

                            var item = '<option city="0" value="0">请选择</option>';
                            $('#custom_site_id').append(item);
                            $.each(data.site, function(k, v) {
                                var item = '<option city="' + v.city + '" value="' + v.id + '">' + v.name + '</option>';
                                $('#custom_site_id').append(item);
                            });
                        });
                    }
                });

                $('#custom_site_id').change(function() {
                    $('#custom_site_contact_id option').remove();
                    var tmp_value = $(this).val();
                    var tmp_city_value = $(this).find('option:selected').attr('city');
                    if (tmp_value > 0) {
                        $('#delivery_point_id option').each(function() {
                            if (tmp_city_value == $(this).val()) {
                                $(this).prop('selected', true);
                            }
                        });
                        $.getJSON('./?m=ajax&a=customsiteinfo&id=' + tmp_value, function(data) {
                            $.each(data, function(k, v) {
                                var item = '<option value="' + v.id + '">' + v.name + '</option>';
                                $('#custom_site_contact_id').append(item);
                            });
                        });
                    }
                });

                $('#car_id').change(function() {
                    $('#driver_id option').eq(0).prop('selected', true);
                    var tmp_driver = $(this).find('option:selected').attr('driver_id');
                    $('#driver_id option').each(function() {
                        if (tmp_driver == $(this).val()) {
                            $(this).prop('selected', true);
                            var tmp_phone = $(this).attr('phone');
                            $('#driver_phone').val(tmp_phone);
                        }
                    });

                    $('#car_team_id option').eq(0).prop('selected', true);
                    var tmp_team = $(this).find('option:selected').attr('team_id');
                    $('#car_team_id option').each(function() {
                        if (tmp_team == $(this).val()) {
                            $(this).prop('selected', true);
                        }
                    });
                });

                $('#driver_id').change(function() {
                    var tmp_phone = $(this).find('option:selected').attr('phone');
                    $('#driver_phone').val(tmp_phone);
                });

                $('#ship_name').blur(function() {
                    var tmp_value = $(this).val();
                    $.getJSON('./?m=ajax&a=shipname&name=' + tmp_value, function(data) {
                        //alert(data);
                    });
                });

                $("#submit").click(function() {
                    var custom_id = $("#custom_id").val();
                    var custom_contact_id = $("#custom_contact_id").val();
                    var custom_code = $("#custom_code").val();
                    var service_mode_id = $("#service_mode_id").val();
                    var custom_site_id = $("#custom_site_id").val();
                    var custom_site_contact_id = $("#custom_site_contact_id").val();
                    var contact_phone = $("#custom_site_contact_phone").val();
                    var goods_city = $("#delivery_point_id").val();
                    var goods_address = $("#delivery_point_address").val();
                    var danger_level = $("#danger_level").val();
                    var nation_code = $("#nation_code").val();
                    var lading_code = $("#lading_code").val();
                    var ship_name = $("#ship_name").val();
                    var ship_line = $("#ship_line").val();
                    var ship_company = $("#ship_company").val();
                    var transfer_time = $("#transfer_time").val();
                    var ship_date = $("#ship_date").val();
                    var goods_port = $("#goods_port").val();
                    var delivery = $("#delivery").val();
                    var start_time = $("#start_time").val();
                    var end_time = $("#end_time").val();
                    var send_yard_id = $("#send_yard_id").val();
                    var back_yard_id = $("#back_yard_id").val();
                    var port_name = $("#port_name").val();
                    var in_time = $("#in_time").val();
                    var out_code = $("#out_code").val();
                    var inner_code = $("#inner_code").val();

                    var is_double = $("#is_double").val();
                    var box_id = $("#box_id").val();
                    var box_code = $("#box_code").val();
                    var seal_code = $("#seal_code").val();
                    var dobox_date = $("#dobox_date").val();
                    var dobox_time = $("#dobox_time").val();
                    var goods_count = $("#goods_count").val();
                    var goods_weight = $("#goods_weight").val();
                    var goods_size = $("#goods_size").val();
                    var goods_name = $("#goods_name").val();
                    var car_id = $("#car_id").val();
                    var driver_id = $("#driver_id").val();
                    var car_team_id = $("#car_team_id").val();
                    var driver_phone = $("#driver_phone").val();
                    var delivery_id = $("#delivery_id").val();
                    var arrive_time = $("#arrive_time").val();
                    var kilometer = $("#kilometer").val();
                    var weight = $("#weight").val();
                    var remark_box = $("#remark_box").val();
                    var remark_big = $("#remark_big").val();

                    var money_1_1 = $("#money_1_1").val();
                    var money_1_2 = $("#money_1_2").val();
                    var money_1_3 = $("#money_1_3").val();
                    var money_1_4 = $("#money_1_4").val();
                    var money_1_5 = $("#money_1_5").val();
                    var money_1_6 = $("#money_1_6").val();
                    var money_1_7 = $("#money_1_7").val();
                    var money_1_8 = $("#money_1_8").val();
                    var money_1_9 = $("#money_1_9").val();
                    var money_1_10 = $("#money_1_10").val();
                    var money_1_11 = $("#money_1_11").val();
                    var money_1_12 = $("#money_1_12").val();
                    var money_1_13 = $("#money_1_13").val();
                    var money_1_14 = $("#money_1_14").val();
                    var money_1_15 = $("#money_1_15").val();
                    var remark_1 = $("#remark_1").val();

                    var money_2_1 = $("#money_2_1").val();
                    var money_2_2 = $("#money_2_2").val();
                    var money_2_3 = $("#money_2_3").val();
                    var money_2_4 = $("#money_2_4").val();
                    var money_2_5 = $("#money_2_5").val();
                    var money_2_6 = $("#money_2_6").val();
                    var money_2_7 = $("#money_2_7").val();
                    var money_2_8 = $("#money_2_8").val();
                    var money_2_9 = $("#money_2_9").val();
                    var money_2_10 = $("#money_2_10").val();
                    var money_2_11 = $("#money_2_11").val();
                    var money_2_12 = $("#money_2_12").val();
                    var money_2_13 = $("#money_2_13").val();
                    var money_2_14 = $("#money_2_14").val();
                    var money_2_15 = $("#money_2_15").val();
                    var remark_2 = $("#remark_2").val();

                    var money_3_1 = $("#money_3_1").val();
                    var money_3_2 = $("#money_3_2").val();
                    var money_3_3 = $("#money_3_3").val();
                    var money_3_4 = $("#money_3_4").val();
                    var money_3_5 = $("#money_3_5").val();
                    var money_3_6 = $("#money_3_6").val();
                    var money_3_7 = $("#money_3_7").val();
                    var money_3_8 = $("#money_3_8").val();
                    var money_3_9 = $("#money_3_9").val();
                    var money_3_10 = $("#money_3_10").val();
                    var money_3_11 = $("#money_3_11").val();
                    var money_3_12 = $("#money_3_12").val();
                    var money_3_13 = $("#money_3_13").val();
                    var money_3_14 = $("#money_3_14").val();
                    var money_3_15 = $("#money_3_15").val();
                    var remark_3 = $("#remark_3").val();

                    var detail_id = $("#detail_id").val();

                    if (confirm("确认提交")) {
                        $.post("./?m=order&a=doupdate", {
                            orderid:<?php echo $this->orderid; ?>,
                            orderid_detail:<?php echo $this->orderid_detail; ?>,
                            detail_id:detail_id,
                            
                            custom_id: custom_id,
                            custom_contact_id: custom_contact_id,
                            custom_code: custom_code,
                            service_mode_id: service_mode_id,
                            custom_site_id: custom_site_id,
                            custom_site_contact_id: custom_site_contact_id,
                            contact_phone: contact_phone,
                            goods_city: goods_city,
                            goods_address: goods_address,
                            danger_level: danger_level,
                            nation_code: nation_code,
                            lading_code: lading_code,
                            ship_name: ship_name,
                            ship_line: ship_line,
                            ship_company: ship_company,
                            transfer_time: transfer_time,
                            ship_date: ship_date,
                            goods_port: goods_port,
                            delivery: delivery,
                            start_time: start_time,
                            end_time: end_time,
                            send_yard_id: send_yard_id,
                            back_yard_id: back_yard_id,
                            port_name: port_name,
                            in_time: in_time,
                            out_code: out_code,
                            inner_code: inner_code,
                            
                            is_double: is_double,
                            box_id: box_id,
                            box_code: box_code,
                            seal_code: seal_code,
                            dobox_date: dobox_date,
                            dobox_time: dobox_time,
                            goods_count: goods_count,
                            goods_weight: goods_weight,
                            goods_size: goods_size,
                            goods_name: goods_name,
                            car_id: car_id,
                            driver_id: driver_id,
                            car_team_id: car_team_id,
                            driver_phone: driver_phone,
                            delivery_id: delivery_id,
                            arrive_time: arrive_time,
                            kilometer: kilometer,
                            weight: weight,
                            remark_box: remark_box,
                            remark_big: remark_big,
                            
                            money_1_1: money_1_1,
                            money_1_2: money_1_2,
                            money_1_3: money_1_3,
                            money_1_4: money_1_4,
                            money_1_5: money_1_5,
                            money_1_6: money_1_6,
                            money_1_7: money_1_7,
                            money_1_8: money_1_8,
                            money_1_9: money_1_9,
                            money_1_10: money_1_10,
                            money_1_11: money_1_11,
                            money_1_12: money_1_12,
                            money_1_13: money_1_13,
                            money_1_14: money_1_14,
                            money_1_15: money_1_15,
                            remark_1: remark_1,
                            money_2_1: money_2_1,
                            money_2_2: money_2_2,
                            money_2_3: money_2_3,
                            money_2_4: money_2_4,
                            money_2_5: money_2_5,
                            money_2_6: money_2_6,
                            money_2_7: money_2_7,
                            money_2_8: money_2_8,
                            money_2_9: money_2_9,
                            money_2_10: money_2_10,
                            money_2_11: money_2_11,
                            money_2_12: money_2_12,
                            money_2_13: money_2_13,
                            money_2_14: money_2_14,
                            money_2_15: money_2_15,
                            remark_2: remark_2,
                            money_3_1: money_3_1,
                            money_3_2: money_3_2,
                            money_3_3: money_3_3,
                            money_3_4: money_3_4,
                            money_3_5: money_3_5,
                            money_3_6: money_3_6,
                            money_3_7: money_3_7,
                            money_3_8: money_3_8,
                            money_3_9: money_3_9,
                            money_3_10: money_3_10,
                            money_3_11: money_3_11,
                            money_3_12: money_3_12,
                            money_3_13: money_3_13,
                            money_3_14: money_3_14,
                            money_3_15: money_3_15,
                            remark_3: remark_3,
                        },
                                function(result) {
                                    if (result > 0) {
                                        swal({
                                            title: "提交数据成功",
                                            text: "THIS IS OK。"
                                        }, function() {
                                            location.href = "./?m=order&a=list";
                                        })
                                    } else {
                                        swal({
                                            title: "提交数据失败",
                                            text: "THIS IS ERROR。"
                                        }, function() {
                                            location.href = "./?m=order&a=list";
                                        });
                                    }
                                    ;
                                });
                    }




                });
                
                $("#goto_add").click(function(){
                    location.href= "./?m=order&a=detail";
                });
                
                $("#cancel").click(function(){
                    location.href= "./?m=order&a=list";
                });
                
                $("#box_add").click(function(){
//                    alert(<?php echo $this->orderid; ?>)
                    $.post("./?m=order&a=boxadd", {orderid: <?php echo $this->orderid; ?>,max_count: + max_count}, function(result) {
                        if (result > 0) {

                                location.href = "./?m=order&a=update&orderid_detail=<?php echo $this->orderid; ?>" + '-' + (max_count + 1);

                        }
                    });
                });
                $("#box_print").click(function(){
                     window.open("./?m=order&a=boxprint");
                });
                
            });
        </script>
    </head>
    <body>
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div style="text-align: right;padding-top: 6px;" class="ibox-title">
                    <button class="btn btn-success " type="button" data-toggle="modal" id="goto_first"><span class="bold">首单</span></button>
                    <button class="btn btn-success " type="button" data-toggle="modal" id="goto_pre"><span class="bold">上一单</span></button>
                    <button class="btn btn-success " type="button" data-toggle="modal" id="goto_next"><span class="bold">下一单</span></button>
                    <button class="btn btn-success " type="button" data-toggle="modal" id="goto_end"><span class="bold">末单</span></button>
                    <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                    <button class="btn btn-success " type="button" data-toggle="modal" id="goto_add"><span class="bold">新增</span></button>
                    <button class="btn btn-success " type="button" data-toggle="modal" id="box_add"><span class="bold">新增箱</span></button>
                    <button class="btn btn-success " type="button" data-toggle="modal"><span class="bold">复制</span></button>
                    <button class="btn btn-success " type="button" data-toggle="modal"><span class="bold">保存</span></button>
                    <button class="btn btn-success " type="button" data-toggle="modal" id="cancel"><span class="bold">取消</span></button>
                    <button class="btn btn-success " type="button" data-toggle="modal"><span class="bold">作废</span></button>
                    <button class="btn btn-success " type="button" data-toggle="modal"><span class="bold">提交</span></button>
                    <button class="btn btn-success " type="button" data-toggle="modal" id="box_print"><span class="bold">装箱单打印</span></button>
                    <button class="btn btn-success " type="button" data-toggle="modal"><span class="bold">承运单</span></button>
                    <button class="btn btn-success " type="button" data-toggle="modal"><span class="bold">结算表</span></button>
                    <button class="btn btn-success " type="button" data-toggle="modal"><span class="bold">发送预录</span></button>
                    <button class="btn btn-success " type="button" data-toggle="modal"><span class="bold">货箱核对</span></button>
                </div>
                <div class="col-sm-2">
                    <div class="ibox float-e-margins">
                        <div class="ibox-content mailbox-content">
                            <div class="file-manager">
                                <h5>箱列表</h5>
                                <table class="table table-bordered" align="center">
                                    <thead>
                                        <tr class="main_in_tr_content_cur">
                                            <th><b>序号</b></th>
                                            <th><b>箱型</b></th>
                                        </tr>
                                    </thead>
                                    <?php $qq = 1;
                                    foreach ($this->orderdetail_id as $k => $v) { ?>
                                        <tr class="box_class box_class_<?php echo $qq; ?>">
                                            <td class="number"><?php echo $qq; ?></td>
                                            <td><?php echo $v['box_id'] ?></td>
                                            <td class='orderid_hid' style="display:none;"><?php echo $v['orderid_detail'] ?></td>
                                        </tr>
    <?php $qq++;
} ?>
                                    <tr>
                                        <td colspan="2" height="30px;"></th>
                                    </tr>
                                    <tr>
                                        <td>应收</th>
                                        <td><?php echo @$this->order_data[0]['money_1'] ?></th>
                                    </tr>
                                    <tr>
                                        <td>应付</th>
                                        <td><?php echo @$this->order_data[0]['money_2'] ?></th>
                                    </tr>
                                    <tr>
                                        <td>车辆</th>
                                        <td><?php echo @$this->order_data[0]['money_3'] ?></th>
                                    </tr>
                                    <tr>
                                        <td>成本</th>
                                        <td>0</th>
                                    </tr>
                                    <tr>
                                        <td>利润</th>
                                        <td>0</th>
                                    </tr>
                                    <tr>
                                        <td colspan="2" height="30px;"></th>
                                    </tr>
                                    <tr>
                                        <td colspan="2">船舶计划</th>
                                    </tr>
                                    <tr>
                                        <td colspan="2">计划靠泊时间</th>
                                    </tr>
                                    <tr>
                                        <td colspan="2">计划离泊时间</th>
                                    </tr>

                                </table>

                                <div class="clearfix"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-10 animated fadeInRight">
<?php $qq = 1;
foreach ($this->orderdetail_data as $k => $v) { ?>
                        <div class=" tbody tbody_<?php echo $qq; ?>">
                            <div class="ibox float-e-margins">
                                <input type="hidden" id="detail_id" value="<?php echo $v['id'] ?>" />
                                <div style="margin-left: 20px;height: 30px;line-height: 30px;">业务信息— — — —<?php echo $v['orderid_detail'] ?></div>

                                <div class="ibox-content">
                                    <form method="get" class="form-horizontal">
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">客户名称</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="custom_id" id="custom_id">
                                                    <option value="0">请选择</option>
                                                    <?php
                                                    foreach ($this->custom as $kk => $vv) {
                                                        ?>
                                                        <option <?php echo $vv['id'] == $v['order'][0]['custom_id'] ? 'selected' : ''; ?> value="<?php echo $vv['id'] ?>"><?php echo $vv['name'] ?></option>
                                                        <?php } ?>
                                                </select>
                                            </div>

                                            <label class="col-sm-1 control-label">客户联系人</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="custom_contact_id" id="custom_contact_id">
                                                    <?php
                                                    foreach ($this->Custom_contact as $kk => $vv) {
                                                        if ($vv['custom_id'] == $v['order'][0]['custom_id']) {
                                                            ?>
                                                            <option <?php echo $vv['id'] == $v['order'][0]['custom_contact_id'] ? 'selected' : ''; ?> value="<?php echo $vv['id'] ?>"><?php echo $vv['name'] ?></option>
                                                    <?php }} ?>
                                                </select>
                                            </div>

                                            <label class="col-sm-1 control-label">客户编号</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="custom_code" id="custom_code" value="<?php echo $this->orderdetail_data[$k]['order'][0]['custom_code'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">业务类型</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="service_mode_id" id="service_mode_id">
                                                    <option value="0">请选择</option>
                                                    <?php
                                                    foreach ($this->serivce_model as $kk => $vv) {
                                                        ?>
                                                        <option <?php echo $vv['id'] == $this->orderdetail_data[$k]['order'][0]['service_mode_id'] ? 'selected' : ''; ?> value="<?php echo $vv['id'] ?>"><?php echo $vv['servicemode'] ?></option>
                                                    <?php }?>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">门点</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="custom_site_id" id="custom_site_id">
                                                    <?php
                                                    foreach ($this->custom_site as $kk => $vv) {
                                                        if ($vv['custom_id'] == $v['order'][0]['custom_id']) {
                                                            ?>
                                                            <option <?php echo $vv['id'] == $v['order'][0]['custom_site_id'] ? 'selected' : ''; ?> value="<?php echo $vv['id'] ?>"><?php echo $vv['name'] ?></option>
                                                    <?php }} ?>
                                                </select>
                                            </div>

                                            <label class="col-sm-1 control-label">联系人</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="custom_site_contact_id" id="custom_site_contact_id">
                                                    <?php
                                                    foreach ($this->custom_site_contact as $kk => $vv) {
                                                        if ($vv['custom_site_id'] == $v['order'][0]['custom_site_id']) {
                                                            ?>
                                                            <option <?php echo $vv['id'] == $v['order'][0]['custom_site_contact_id'] ? 'selected' : ''; ?> value="<?php echo $vv['id'] ?>"><?php echo $vv['name'] ?></option>
                                                    <?php }} ?>
                                                </select>
                                            </div>

                                            <label class="col-sm-1 control-label">联系电话</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="custom_site_contact_phone" id="custom_site_contact_phone" value="<?php echo $this->orderdetail_data[$k]['order'][0]['contact_phone'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">装卸货地点</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="delivery_point_id" id="delivery_point_id">
                                                    <option value="0">请选择</option>
                                                    <?php
                                                    foreach ($this->city as $kk => $vv) {
                                                        ?>
                                                        <option <?php echo $vv['id'] == $this->orderdetail_data[$k]['order'][0]['goods_city'] ? 'selected' : ''; ?> value="<?php echo $vv['id'] ?>"><?php echo $vv['name'] ?></option>
                                                        <?php } ?>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">装卸货地址</label>
                                            <div class="col-sm-5">
                                                <input type="text" class="form-control" name="delivery_point_address" id="delivery_point_address" value="<?php echo $this->orderdetail_data[$k]['order'][0]['goods_address'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">危险品等级</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="danger_level" id="danger_level" value="<?php echo $this->orderdetail_data[$k]['order'][0]['danger_level'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">联合国编号</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="nation_code" id="nation_code" value="<?php echo $this->orderdetail_data[$k]['order'][0]['nation_code'] ?>" />
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">提单号</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="lading_code" id="lading_code" value="<?php echo $this->orderdetail_data[$k]['order'][0]['lading_code'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">船名</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="ship_name" id="ship_name" value="<?php echo $this->orderdetail_data[$k]['order'][0]['ship_name'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">航次</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="ship_line" id="ship_line" value="<?php echo $this->orderdetail_data[$k]['order'][0]['ship_line'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">船公司</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="ship_company" id="ship_company">

                                                </select>
                                            </div>

                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">交接单时间</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})" name="transfer_time" id="transfer_time" value="<?php echo $this->orderdetail_data[$k]['order'][0]['transfer_time'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">是否双拖</label>
                                            <div class="col-sm-2">
                                                <div class="checkbox">
                                                    <label>
                                                        <input <?php echo $this->orderdetail_data[$k]['is_double'] == 1 ? 'checked ' : ''; ?> type="checkbox" value="1" name="is_double" id="is_double">
                                                    </label>
                                                </div>
                                            </div>

                                            <label class="col-sm-1 control-label">船期</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="ship_date" id="ship_date" value="<?php echo $this->orderdetail_data[$k]['order'][0]['ship_date'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">卸货港</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="goods_port" id="goods_port" value="<?php echo $this->orderdetail_data[$k]['order'][0]['goods_port'] ?>" />
                                            </div>

                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">交货地</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="delivery" id="delivery">
                                                    <?php
                                                    foreach ($this->delivery_point as $kk => $vv) {
                                                        ?>
                                                        <option <?php echo $vv['id'] == $this->orderdetail_data[$k]['order'][0]['delivery'] ? 'selected' : ''; ?> value="<?php echo $vv['id'] ?>"><?php echo $vv['point'] ?></option>
    <?php } ?>
                                                </select>
                                            </div>

                                            <label class="col-sm-1 control-label">箱型</label>
                                            <div class="col-sm-2">
                                                <select class="form-control"  name="box_id" id="box_id">
                                                    <?php
                                                    foreach ($this->box as $kk => $vv) {
                                                        ?>
                                                        <option <?php echo $vv['id'] == $this->orderdetail_data[$k]['box_id'] ? 'selected' : ''; ?> value="<?php echo $vv['id'] ?>"><?php echo $vv['code'] ?></option>
    <?php } ?>
                                                </select>
<!--                                                <input type="text" class="form-control" style="width:30%;float:left;" name="detail_count" id="detail_count" value="" />-->
                                            </div>

                                            <label class="col-sm-1 control-label">箱号</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="box_code" id="box_code" value="<?php echo $this->orderdetail_data[$k]['box_code'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">封条号</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="seal_code" id="seal_code" value="<?php echo $this->orderdetail_data[$k]['seal_code'] ?>" />
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">做厢时间</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:65%;float:left;" name="dobox_date" id="dobox_date" value="<?php echo $this->orderdetail_data[$k]['dobox_date'] ?>" />
                                                <input type="text" class="form-control" style="width:30%;float:left;" name="dobox_time"  onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})"  id="dobox_time" value="<?php echo $this->orderdetail_data[$k]['dobox_time'] ?>" />
                                            </div>

                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">件数</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="goods_count" id="goods_count" value="<?php echo $this->orderdetail_data[$k]['goods_count'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">毛重</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="goods_weight" id="goods_weight" value="<?php echo $this->orderdetail_data[$k]['goods_weight'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">尺码</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="goods_size" id="goods_size" value="<?php echo $this->orderdetail_data[$k]['goods_size'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">货名</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="goods_name" id="goods_name" value="<?php echo $this->orderdetail_data[$k]['goods_name'] ?>" />
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">开港时间</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})" name="start_time" id="start_time" value="<?php echo @$this->orderdetail_data[$k]['order'][0]['start_time'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">截港时间</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})" name="end_time" id="end_time" value="<?php echo @$this->orderdetail_data[$k]['order'][0]['end_time'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">提箱堆场</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="send_yard_id" id="send_yard_id">
                                                    <?php
                                                    foreach ($this->yard as $kk => $vv) {
                                                        ?>
                                                        <option <?php echo $vv['id'] == $this->orderdetail_data[$k]['order'][0]['send_yard_id'] ? 'selected' : ''; ?> value="<?php echo $vv['id'] ?>"><?php echo $vv['name'] ?></option>
    <?php } ?>
                                                </select>
                                            </div>

                                            <label class="col-sm-1 control-label">还箱堆场</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="back_yard_id" id="back_yard_id">
                                                    <?php
                                                    foreach ($this->yard as $ykk => $yvv) {
                                                        ?>
                                                        <option <?php echo $yvv['id'] == $this->orderdetail_data[$k]['order'][0]['back_yard_id'] ? 'selected' : ''; ?> value="<?php echo $yvv['id'] ?>"><?php echo $yvv['name'] ?></option>
    <?php } ?>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">港区</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="port_name" id="port_name">
                                                </select>
                                            </div>

                                            <label class="col-sm-1 control-label">进港时间</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})" name="in_time" id="in_time" value="<?php echo @$this->orderdetail_data[$k]['order'][0]['in_time'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">动检编号</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="out_code" id="out_code" value="<?php echo @$this->orderdetail_data[$k]['order'][0]['out_code'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">内部编号</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="inner_code" id="inner_code" value="<?php echo @$this->orderdetail_data[$k]['order'][0]['inner_code'] ?>" />
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">车牌号</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="car_id" id="car_id">
                                                    <option driver_id="0" team_id="0" value="0">请选择</option>
                                                    <?php
                                                    foreach ($this->car as $kk => $vv) {
                                                        ?>
                                                        <option driver_id="<?php echo $vv['driver_id'] ?>" team_id="<?php echo $vv['team_id'] ?>" value="<?php echo $vv['id'] ?>"><?php echo $vv['name'] ?></option>;
    <?php } ?>
                                                </select>
                                            </div>

                                            <label class="col-sm-1 control-label">司机</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="driver_id" id="driver_id">
                                                    <option value="0" phone="0">请选择</option>
                                                    <?php
                                                    foreach ($this->driver as $kk => $vv) {
                                                        ?>
                                                        <option <?php echo $vv['id'] == $v['driver_id'] ? 'selected' : ''; ?> value="<?php echo $vv['id'] ?>"><?php echo $vv['name'] ?></option>
    <?php } ?>
                                                </select>
                                            </div>

                                            <label class="col-sm-1 control-label">车队</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="car_team_id" id="car_team_id">
                                                    <option value="0">请选择</option>
                                                    <?php
                                                    foreach ($this->carteam as $kk => $vv) {
                                                        ?>
                                                        <option <?php echo $vv['id'] == $v['car_team_id'] ? 'selected' : ''; ?> value="<?php echo $vv['id'] ?>"><?php echo $vv['name'] ?></option>
    <?php } ?>
                                                </select>
                                            </div>

                                            <label class="col-sm-1 control-label">司机手机号</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="driver_phone" id="driver_phone" value="<?php echo $this->orderdetail_data[$k]['driver_phone'] ?>" />
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">寄单点</label>
                                            <div class="col-sm-2">
                                                <select class="form-control" name="delivery_id" id="delivery_id">
                                                    <option driver_id="0" team_id="0" value="0">请选择</option>
                                                    <?php
                                                    foreach ($this->delivery as $kk => $vv) {
                                                        ?>
                                                        <option <?php echo $vv['id'] == $v['delivery_id'] ? 'selected' : ''; ?> value="<?php echo $vv['id'] ?>"><?php echo $vv['name'] ?></option>;
    <?php } ?>
                                                </select>
                                            </div>

                                            <label class="col-sm-1 control-label">到场时间</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})" name="arrive_time" id="arrive_time" value="<?php echo $this->orderdetail_data[$k]['arrive_time'] ?>" />
                                            </div>

                                            <label class="col-sm-1 control-label">公里数</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="kilometer" id="kilometer" value="<?php echo $this->orderdetail_data[$k]['kilometer'] ?>" />
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">皮重</label>
                                            <div class="col-sm-2">
                                                <input type="text" class="form-control" name="weight" id="weight" value="<?php echo $this->orderdetail_data[$k]['weight'] ?>" />
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-sm-1 control-label">装箱单备注</label>
                                            <div class="col-sm-5">
                                                <textarea class="form-control" name="remark_box" id="remark_box"><?php echo $this->orderdetail_data[$k]['remark_box'] ?></textarea>
                                            </div>

                                            <label class="col-sm-1 control-label">大表备注</label>
                                            <div class="col-sm-5">
                                                <textarea class="form-control" name="remark_big" id="remark_big"><?php echo $this->orderdetail_data[$k]['remark_big'] ?></textarea>
                                            </div>
                                        </div>
                                    </form>
                                </div>

                            </div>
    <?php
    foreach ($this->orderdetail_data[$k]['money'] as $kk => $vv) {
        if ($vv['type'] == 1) {
            ?>
                                    <div class="ibox float-e-margins">
                                        <div class="ibox-title">
                                            <h5>应收费用</h5>
                                        </div>
                                        <div class="ibox-content">
                                            <form method="get" class="form-horizontal">
                                                <div class="form-group">
                                                    <label class="col-sm-1 control-label">运费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_1" id="money_1_1" value="<?php echo $vv['money_1'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">待时费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_2" id="money_1_2" value="<?php echo $vv['money_2'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">预提费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_3" id="money_1_3" value="<?php echo $vv['money_3'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">洋山费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_4" id="money_1_4" value="<?php echo $vv['money_4'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">落/还厢费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_5" id="money_1_5" value="<?php echo $vv['money_5'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">打/改单费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_6" id="money_1_6" value="<?php echo $vv['money_6'] ?>" />
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-sm-1 control-label">理货费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_7" id="money_1_7" value="<?php echo $vv['money_7'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">超重费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_8" id="money_1_8" value="<?php echo $vv['money_8'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">疏港费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_9" id="money_1_9" value="<?php echo $vv['money_9'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">港杂费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_10" id="money_1_10" value="<?php echo $vv['money_10'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">坏/污厢费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_11" id="money_1_11" value="<?php echo $vv['money_11'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">其他费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_12" id="money_1_12" value="<?php echo $vv['money_12'] ?>" />
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-sm-1 control-label">应收备注</label>
                                                    <div class="col-sm-5">
                                                        <input type="text" class="form-control" name="remark_1" id="remark_1" value="<?php echo $vv['money_remark'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">代垫费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_13" id="money_1_13" value="<?php echo $vv['money_13'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">税金</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_14" id="money_1_14" value="<?php echo $vv['money_14'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">代收费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_1_15" id="money_1_15" value="<?php echo $vv['money_15'] ?>" />
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                <?php }
                            } ?>
    <?php
    foreach ($this->orderdetail_data[$k]['money'] as $kk => $vv) {
        if ($vv['type'] == 2) {
            ?>
                                    <div class="ibox float-e-margins">
                                        <div class="ibox-title">
                                            <h5>应付费用</h5>
                                        </div>
                                        <div class="ibox-content">
                                            <form method="get" class="form-horizontal">
                                                <div class="form-group">
                                                    <label class="col-sm-1 control-label">运费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_1" id="money_2_1" value="<?php echo $vv['money_1'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">待时费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_2" id="money_2_2" value="<?php echo $vv['money_2'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">预提费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_3" id="money_2_3" value="<?php echo $vv['money_3'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">洋山费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_4" id="money_2_4" value="<?php echo $vv['money_4'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">落/还厢费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_5" id="money_2_5" value="<?php echo $vv['money_5'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">打/改单费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_6" id="money_2_6" value="<?php echo $vv['money_6'] ?>" />
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-sm-1 control-label">理货费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_7" id="money_2_7" value="<?php echo $vv['money_7'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">超重费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_8" id="money_2_8" value="<?php echo $vv['money_8'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">疏港费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_9" id="money_2_9" value="<?php echo $vv['money_9'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">港杂费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_10" id="money_2_10" value="<?php echo $vv['money_10'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">坏/污厢费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_11" id="money_2_11" value="<?php echo $vv['money_11'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">其他费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_12" id="money_2_12" value="<?php echo $vv['money_12'] ?>" />
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-sm-1 control-label">应付备注</label>
                                                    <div class="col-sm-5">
                                                        <input type="text" class="form-control" name="remark_2" id="remark_2" value="<?php echo $vv['money_remark'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">代垫费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_13" id="money_2_13" value="<?php echo $vv['money_13'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">税金</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_14" id="money_2_14" value="<?php echo $vv['money_14'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">预付费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_2_15" id="money_2_15" value="<?php echo $vv['money_15'] ?>" />
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
        <?php }
    } ?>
    <?php
    foreach ($this->orderdetail_data[$k]['money'] as $kk => $vv) {
        if ($vv['type'] == 3) {
            ?>
                                    <div class="ibox float-e-margins">
                                        <div class="ibox-title">
                                            <h5>车辆费用</h5>
                                        </div>
                                        <div class="ibox-content">
                                            <form method="get" class="form-horizontal">
                                                <div class="form-group">
                                                    <label class="col-sm-1 control-label">出车费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_3_1" id="money_3_1" value="<?php echo $vv['money_1'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">提箱费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_3_2" id="money_3_2" value="<?php echo $vv['money_2'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">调箱门</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_3_3" id="money_3_3" value="<?php echo $vv['money_3'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">路桥费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_3_4" id="money_3_4" value="<?php echo $vv['money_4'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">邮费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_3_5" id="money_3_5" value="<?php echo $vv['money_5'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">待时费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_3_6" id="money_3_6" value="<?php echo $vv['money_6'] ?>" />
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-sm-1 control-label">轮胎费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_3_7" id="money_3_7" value="<?php echo $vv['money_7'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">修理费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_3_8" id="money_3_8" value="<?php echo $vv['money_8'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">其他费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_3_9" id="money_3_9" value="<?php echo $vv['money_9'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">罚款</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_3_10" id="money_3_10" value="<?php echo $vv['money_10'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">路桥费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_3_11" id="money_3_11" value="<?php echo $vv['money_11'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">进港费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_3_12" id="money_3_12" value="<?php echo $vv['money_12'] ?>" />
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-sm-1 control-label">车辆备注</label>
                                                    <div class="col-sm-5">
                                                        <input type="text" class="form-control" name="remark_3" id="remark_3" value="<?php echo $vv['money_remark'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">代支费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_3_13" id="money_3_13" value="<?php echo $vv['money_13'] ?>" />
                                                    </div>

                                                    <label class="col-sm-1 control-label">垫付费</label>
                                                    <div class="col-sm-1">
                                                        <input type="text" class="form-control" name="money_3_14" id="money_3_14" value="<?php echo $vv['money_14'] ?>" />
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
        <?php }
    } ?>
                        </div>
    <?php $qq++;
} ?>
                    <div class="form-group">
                        <div style="text-align: right;" class="col-sm-12">
                            <button style="width: 80px;" class="btn btn-sm btn-info" type="button" id="submit" >保&nbsp;存</button>
                        </div>
                    </div>

                </div>
            </div>
        </div>


        <div class="outside_pull"></div>
    </body>
</html>
